<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title></title>
		<script type="text/javascript">
			var arr = ['冬瓜','西瓜','南瓜','北瓜'];
//			  数组的下标：0       1     2       3

//			document.write(arr[1]);
			//数组的长度
//			document.write(arr.length);

			//数组下标最大值为：
//			var res = arr.length - 1;
//			document.write(res);
						
			for (var i=0;i<arr.length;i++) {
				document.write(arr[i]+'、');
			}
		</script>
	</head>
	<body>

	</body>
</html>
